package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.ProgressDao;
import com.zhiyou100.model.Progress;
import com.zhiyou100.param.ProgressUser;

@Service
public class ProgressServiceImpl implements ProgressService {

	@Autowired
	private ProgressDao progressDao;
	
	@Override
	public ArrayList<ProgressUser> findByProjectId(int id) {
		
		return progressDao.findByProjectId(id);
	}

	@Override
	public ProgressUser findBy(int id) {
		
		return progressDao.findBy(id);
	}

	@Override
	public void save(Progress progress) {

		progressDao.save(progress);
	}

}
